<include file="Base/header" />  
<div class="page-container">
    <include file="Base/menu" /> 
    <div class="page-content">
        <div class="container-fluid">
            <div class="row-fluid">
                    <div class="span12"> 
                        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                        <h3 class="page-title">
                            系统管理 <small>这里展示后台管理权限</small>
                        </h3>
                        <ul class="breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="index.html">主页</a> 
                                <i class="icon-angle-right"></i>
                            </li>
                            <li><a href="#">权限管理</a></li>
                        </ul>
                        <!-- END PAGE TITLE & BREADCRUMB-->
                    </div>
                </div>
            <div id="dashboard">
                <!-- 开发 -->

                <div class="title">
        <a class="btn btn-default" href="{:U('Admin/Access/add_user')}" >添加用户</a>
    </div>
    <div class="container-fluid">
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>名称</th>
                    <th>角色</th>
                    <th>时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="data" item="v">
                    <tr>
                        <td>{$v['id']}</td>
                        <td>{$v['name']}</td>
                        <td>{$v['role']}</td>
                        <td>{$v['time']|date="Y-m-d",###}</td>
                        <td>
                            <a href="{:U('Admin/Access/add_user',array('user_id'=>$v['id'],'role_id'=>$v['role_id']))}">编辑</a>
                            <a href="{:U('Admin/Access/del_user',array('id'=>$v['id']))}">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>
    </div>
            </div>
        </div>
    </div>
</div>

<include file="Base/footer" />
